]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
networkAgent: Don't allow ellipsization of Password label
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 18 Sep 2013 20:36:17 +0000 (22:36 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 19 Sep 2013 05:53:57 +0000 (07:53 +0200)
We don't want password entries to grow when entering more characters
that fit the available width; as labels' ClutterText ellipsizes by
default, the password labels allow entries to grow by shrinking.
Setting the appropriate ellipsize mode fixes this.

https://bugzilla.gnome.org/show_bug.cgi?id=708324

js/ui/components/networkAgent.js

index 63c8bb77a00525edbc3e1311077face77e15655a..6a965689062a15128fddd0b2a57e73efceec858d 100644 (file)
@@ -83,6 +83,7 @@ const NetworkSecretDialog = new Lang.Class({
             let secret = this._content.secrets[i];
             let label = new St.Label({ style_class: 'prompt-dialog-password-label',
                                        text: secret.label });
+            label.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
 
             let reactive = secret.key != null;